﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using OpenTKLightingTool.Data;

namespace OpenTKLightingTool.Controls
{
    /// <summary>
    /// Interaction logic for AxesControl.xaml
    /// </summary>
    public partial class AxesControl : UserControl
    {
        private AxesSystem mAxesSystem;

        public AxesControl()
        {
            InitializeComponent();
        }

        internal void SetData(AxesSystem axesSystem)
        {
            mAxesSystem = axesSystem;
            uxShow.IsChecked = mAxesSystem.Show;
            uxShowLights.IsChecked = mAxesSystem.ShowLights;
        }

        internal void Update()
        {
            mAxesSystem.Show = uxShow.IsChecked.Value;
            mAxesSystem.ShowLights = uxShowLights.IsChecked.Value;
        }
    }
}
